package com.purax.pms.bean.bo;

import com.purax.pms.common.bo.BaseBo;
import java.util.List;

/**
 * 用户
 *
 * @author alex
 */
public class SysUser extends BaseBo<Long>  {

    /**
     * 用户名;大小写数字下划线
     */
    private String username;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 密码
     */
    private String psw;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机;1开头11位纯数字
     */
    private String mobile;

    /**
     * 内置;
     */
    private Boolean readonly;


    /**
     * 状态;[0-禁用 1-启用]
     */
    private Boolean state;


    /**
     * 当前用户所属部门
     */
    private Dept dept;

    /**
     * 所属岗位
     */
    private Position position;

    /**
     * 对应的员工
     */
    private Employee employee;


    /**
     * 拥有的角色
     * 启用条件： LoginUser.isFull = true || LoginUser.isRole = true
     */
    private List<SysRole> sysRoles;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Boolean getReadonly() {
        return readonly;
    }

    public void setReadonly(Boolean readonly) {
        this.readonly = readonly;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Position getPosition() {
        return position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public List<SysRole> getSysRoles() {
        return sysRoles;
    }

    public void setSysRoles(List<SysRole> sysRoles) {
        this.sysRoles = sysRoles;
    }
}
